<template>
  <div>
    <common-header :tagcolo="home"></common-header>
    <home-navswiper></home-navswiper>
    <home-minswiper></home-minswiper>
    <home-product></home-product>
    <home-entrust></home-entrust>
    <home-assets></home-assets>
    <common-footer></common-footer>
  </div>
</template>

<script>
import CommonHeader from 'common/header/Header'
import CommonFooter from 'common/footer/Footer'
import HomeNavswiper from './components/Navswiper'
import HomeMinswiper from './components/Minswiper'
import HomeProduct from './components/Product'
import HomeEntrust from './components/Entrust'
import HomeAssets from './components/Assets'
import axios from 'axios'
export default {
  name: 'Home',
  data () {
    return {
      home: {
        nav: 'home'
      }
    }
  },
  components: {
    CommonHeader,
    CommonFooter,
    HomeNavswiper,
    HomeMinswiper,
    HomeProduct,
    HomeEntrust,
    HomeAssets
  }
  // methods: {
  //   getHomeProductone () {
  //     axios.get('/api/homeproductlistone.json').then(this.getHomeInfoSuccOne)
  //   },
  //   getHomeProducttwo () {
  //     axios.get('/api/homeproductlisttwo.json').then(this.getHomeInfoSuccTwo)
  //   },
  //   getHomeInfoSuccOne (res) {
  //     res = res.data
  //     if (res.data) { this.inproductlistone(res) }
  //   },
  //   getHomeInfoSuccTwo (res) {
  //     res = res.data
  //     if (res.data) { this.inproductlisttwo(res) }
  //   },
  //   ...mapMutations(['inproductlistone']),
  //   ...mapMutations(['inproductlisttwo'])
  //
  // },
  // mounted () {
  //   this.getHomeProductone()
  //   this.getHomeProducttwo()
  // }
}
</script>

<style lang="stylus" scoped type="text/stylus">

</style>
